package itdfq.ydd.Behavior_Patters.zhongjiezhe;

/**
 * @Author GocChin
 * @Date 2021/5/17 20:50
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("1803120136   杨丹丹");
        Mediator me = new Mediator();
        Renter r = new Renter("1000", "li", me);
        Saler s = new Saler("2000", "sun", me);
        Saler s2 = new Saler("2001", "sun2", me);
        me.addRenter(r);
        me.addSaler(s);
        me.addSaler(s2);
        r.send("I want to rent a house");
        s.send("I want to sale a house");
        s2.send("I want to sale a house");
    }

}
